Ext.define("Oa.view.supplier.ShowPanel",{
    extend:'Ext.panel.Panel',
    alias:'widget.suppliershow',
    width:"80%",
    height:"100%",
    layout:'vbox',
    title:'公司供应商信息一览',
    initComponent:function(){
        this.items=[{
            xtype:'grid',
            height:"100%",
            width:'100%',
            border:false,
            flex:1,
            store:'SupplierStore',
            id:'supplierGrid',
            columns:[{
                header:'供应商ID',
                flex:1,
                dataIndex:'id',
                hidden:true
            },{
                header:'供方名称',
                flex:1,
                dataIndex:'name'
            },{
                header:'供应物品名',
                flex:1,
                dataIndex:'goodsName'
            },{
                header:'供应物品类型',
                flex:1,
                dataIndex:'type'
            },{
                header:'供应物品价格',
                flex:1,
                dataIndex:'price'
            },{
                header:'供应商地址',
                flex:1,
                dataIndex:'address'
            },{
                header:'供应商联系人',
                flex:1,
                dataIndex:'phone'
            },{
                header:'供应商传真',
                flex:1,
                dataIndex:'fax'
            },{
                header:'供应商邮编',
                flex:1,
                dataIndex:'postcode'
            },{
                header:'资质证书',
                flex:1,
                dataIndex:'file'
            }]
        }];
        this.tbar = [{
                xtype:'textfield',
                id:'supplierName',
                labelWidth:100,
                width:100
            },{
                text:'查找供应商',
                action:'search'
            },'->',{
                text:'查看全部供应商',
                action:'all'
            }]
        this.callParent(arguments);
    }
})